const WebpackConfigProd = require("./webpack.config.prod")
const path = require('path')

module.exports = {
  ...WebpackConfigProd,
  devServer: {
    host:'127.0.0.1',
    // contentBase: path.join(__dirname, "public"),
    // publicPath:'/login',
    /*openPage:'http://localhost:8327/login',*/
    port: "8423", // 端口号
    open: false,  // 自动打开浏览器
    compress: true, //启动gzip压缩
    liveReload:true,//启动自动更新
    historyApiFallback:true,//
    proxy:{
      '/api1':{
        target:'http://localhost:8327',
        pathRewrite: {
          "^/api1": ""
        }
      }
    },
  },
  mode:"development"
}